Airwallex\Gateways\ExpressCheckout D

Total Complexity 154
Dependencies 18
Dependents 4
Total lines 1,042
Lines of code 768
Logical lines of code 294
Comment lines 113
Methods 46
Properties 8

Methods 46

Method Rating Maintainability Complexity Lines of code
shouldShowExpressCheckoutButton()
B
47 17 35
isProductSupported()
A
52 12 23
displayExpressCheckoutButtonHtml()
A
47 10 43
process_payment()
A
39 8 62
isCartItemsAllowed()
A
53 9 22
getActiveCardSchemes()
A
47 8 36
hasSubscriptionProduct()
A
55 8 19
getCheckoutDetail()
S
48 6 33
init_form_fields()
S
39 2 77
getExpressCheckoutScriptData()
S
44 4 44
addOrderMeta()
S
58 6 14
generate_payment_methods_html()
S
41 2 69
isAuthenticationRequired()
S
65 5 9
getProduct()
S
60 4 13
getLoginConfirmationSettings()
S
58 3 16
getExpressCheckoutSettingsScriptData()
S
52 2 26
__construct()
S
49 1 34
registerHooks()
S
54 2 19
isPreOrderProductChargedUponRelease()
S
77 3 3
getPreOrderProductFromCart()
S
70 3 6
subscription_payment_information()
S
68 3 7
isAccountCreationPossible()
S
68 3 7
isPageSupported()
S
73 3 5
getMetaData()
S
66 3 8
generate_apple_pay_instruction_html()
S
58 1 17
getSupportedProductTypes()
S
60 1 16
registrationEmailExistsError()
S
66 2 8
isCartOrCheckout()
S
79 2 3
isMethodEnabled()
S
76 2 3
validate_payment_methods_field()
S
77 2 3
isProduct()
S
79 2 3
enqueueAdminScripts()
S
63 1 13
paymentMethodNotEnabledMessage()
S
65 1 9
is_capture_immediately()
S
78 1 3
failedToAddDomainFileMessage()
S
67 1 8
failedToRegisterDomainMessage()
S
68 1 7
generate_alert_html()
S
67 1 9
displayExpressCheckoutButtonSeparatorHtml()
S
75 1 5
generate_button_preview_html()
S
73 1 5
getShowButtonOn()
S
80 1 3
getButtonType()
S
80 1 3
getButtonSize()
S
82 1 3
getButtonTheme()
S
80 1 3
isCardGatewayEnabled()
S
77 1 3
enqueueScripts()
S
68 1 8
shouldShowButtonOnPage()
S
79 1 3